package com.dk.service.Impl;

import com.dk.mapper.TabRouteImgMapper;
import com.dk.pojo.TabRouteImg;
import com.dk.pojo.TabRouteImgExample;
import com.dk.service.TabRouteImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TabRouteImgServiceImpl implements TabRouteImgService {
    @Autowired
    TabRouteImgMapper tabRouteImgMapper;

    @Override
    public List<TabRouteImg> getInfoByRid(Integer rid) {
        TabRouteImgExample example = new TabRouteImgExample();
        TabRouteImgExample.Criteria criteria = example.createCriteria();
        criteria.andRidEqualTo(rid);
        List<TabRouteImg> routeImgs = tabRouteImgMapper.selectByExample(example);
        return routeImgs;
    }
}
